    cmake_minimum_required(VERSION 3.18.1)
	PROJECT(practice VERSION 0.1.0)
	set(CMAKE_CXX_STANDARD 20)
    set(CMAKE_CXX_STANDARD_REQUIRED ON)
	set(CMAKE_BUILD_TYPE "Debug")
	add_compile_definitions(DEFINE_CONDITION)
	include_directories(include)
	# 方案一
	# set(BUILD_LIB "liba")
	# if(BUILD_LIB STREQUAL "liba")
	#   add_library(clib SHARED src/CLib.cc)
	# elseif(BUILD_LIB STREQUAL "liba")
	#    add_library(clib SHARED src/CLib.cc) 
	# endif()
	option(BUILD_MYLIB "Enable building the myLib target" ON)
	if(BUILD_MYLIB)
	  add_library(clib SHARED src/cLib.cc src/stack.cc src/stringStack.cc src/Instrument.cc src/PetInstrument.cc src/FileClass.cc src/TempTemp2.cc src/Mytemplate.cc)
	  add_library(stash SHARED src/stash.cc src/classStack.cc) 
	  add_library(pstash SHARED src/PStash.cc) 
	  add_library(threadpool SHARED src/pool/threadpool.cc src/pool/thread.cc src/pool/result.cc src/pool/task.cc) 
	  add_library(newthreadpool SHARED src/newpool/threadpool.cc src/newpool/thread.cc) 
	endif()
	#add_executable(main src/NameHiding.cc)
	#add_executable(main src/Array3.cc) 
    #add_executable(main main.cc)
	add_executable(main2 new_thread_test.cc) 
	#add_executable(main2 thread/thread.cc)
	#add_executable(main2 src/virtualclass.cc)
	#add_executable(main2 src/codedesign/builder.cc)
	
	if(BUILD_MYLIB)
	  target_link_libraries(main2 newthreadpool) 
	endif()  
